<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style> 
        .rich{
            color: gold;
        }
        .beauty{
            color: red;
        }
        p.beauty{
            color: green;
        }
        .rich,.beauty,.dog,.pig{
            background-color: gray;
            font-size: 40px;
            width: 180px;
        }
    </style>
</head>
<body>
    <h2 class="rich">土豪 张三</h2>
    <h2 class="beauty">明星 李四</h2>
    <hr>
    <p class="dog">小狗旺财</p>
    <p class="pig">小猪佩奇</p>
</body>
</html>